var productionOrder = {
	save : function() {
	         new WindowPanel({
	           id: 'save',
	           title: '保存',
	           width: 650,
	           height: 400,
	           closeConfirm : true,
	           maximizable: false,
	           html : '<iframe name="saveFrame" id="saveFrame" src="'+projectName+'/product/productionOrder/toSave.t4m?'+getFlushParam('save') + '" frameborder="0" scrolling="auto"></iframe>',
	              tbar: new Toolbar({
	                  icon: 'image/op.gif',
	                  items : [{
	                    type : 'button',
	                    text : '保存',
	                    position: {
	                      a: '-80px 0px',
	                      b: '-80px -120px'
	                    },
	                    handler : function(){
	                      submitFrameForm('saveFrame', 'objectForm');
	                    }
	                  }]
	                })
	         });
	       },  
	view : function(id) {
        new WindowPanel({
          id: 'view',
          title: '查看',
          width: 650,
          height: 400,
          closeConfirm : true,
          maximizable: false,
          html : '<iframe name="viewFrame" id="viewFrame" src="'+projectName+'/product/productionOrder/view.t4m?'+getFlushParam('view')+'&object.id='+id+'" frameborder="0" scrolling="auto"></iframe>',
        });
      },    
      toCheck : function(id) {
    	  new WindowPanel({
              id: 'checkOutOrder',
              title: '出库单审核',
              width: 800,
              height: 400,
              closeConfirm : true,
              maximizable: false,
              html : '<iframe name="outOrderCheckFrame" id="outOrderCheckFrame" src="'+projectName+'/product/outOrder/toCheck.t4m?'+getFlushParam('checkOutOrder')+'&object.id='+id+'" frameborder="0" scrolling="auto"></iframe>',
              tbar: new Toolbar({
                icon: 'image/op.gif',
                items : [{
                  type : 'button',
                  text : '保存',
                  position: {
                    a: '-80px 0px',
                    b: '-80px -120px'
                  },
                  handler : function(){
                    submitFrameForm('outOrderCheckFrame', 'outOrderCheckForm');
                  }
                }]
              })
            });
          },
          update : function(id) {
        	  new WindowPanel({
                  id: 'update',
                  title: '修改',
                  width: 700,
                  height: 400,
                  closeConfirm : true,
                  maximizable: false,
                  html : '<iframe name="updateFrame" id="updateFrame" src="'+projectName+'/product/productionOrder/toUpdate.t4m?'+getFlushParam('update')+'&object.id='+id+'" frameborder="0" scrolling="auto"></iframe>',
                  tbar: new Toolbar({
                    icon: 'image/op.gif',
                    items : [{
                      type : 'button',
                      text : '保存',
                      position: {
                        a: '-80px 0px',
                        b: '-80px -120px'
                      },
                      handler : function(){
                        submitFrameForm('updateFrame', 'objectForm');
                      }
                    }]
                  })
                });
              }
};